package com.itany.corejava.code07_面向对象.继承;

/**
 * @author: 石小俊
 * @date: 2023年03月08日 9:29
 * @version: 1.0
 */
public class Person{
    private String name;
    private int age;
    private String personId;

    public void show(){
        System.out.println("姓名:"+name+",年龄:"+age+",身份证号码:"+personId);
    }

    public Person() {
    }

    public Person(String name, int age, String personId) {
        this.name = name;
        this.age = age;
        this.personId = personId;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }
}

